'''
Created on 05/05/2010

@author: emlyn
'''
from google.appengine.ext import db
from DataClass.SiteUser import SiteUser
 
class PSInstitution(db.Model):
    user = db.ReferenceProperty(SiteUser)
    instname = db.StringProperty(multiline=False)
    description = db.StringProperty(multiline=True)
    archive = db.BooleanProperty()

    def ToString(self):
        retval = self.instname
        if self.archive:
            retval + " (archived)"
        return retval
        